package ltd.hxya.novel.book.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class BookContentVo {


    @ApiModelProperty(value = "目录ID")
    private String indexId;

    @ApiModelProperty(value = "小说章节内容")
    private String content;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "上一章目录id")
    private String preIndexId;

    @ApiModelProperty(value = "下一章目录id")
    private String nextIndexId;

    private Integer indexNum;

    @ApiModelProperty(value = "书名")
    private String bookName;

    @ApiModelProperty(value = "作者名")
    private String authorName;

    @ApiModelProperty(value = "章节名")
    private String indexName;

    @ApiModelProperty(value = "字数")
    private Integer wordCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "文章最后修改日期")
    private LocalDateTime updateTime;


}
